<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ConditionControl.ascx.cs"
    Inherits="CARMS.Controls.ConditionControl" %>



<style>
    .divTitle
    {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 110px;
    }
    .divContent
    {
        width: 120px;
    }
</style>
<fieldset>
    <legend>Search Condition </legend>
    <asp:DataList runat="server" ID="listCondition" RepeatColumns="4" RepeatDirection="Horizontal"
        OnItemDataBound="listCondition_OnItemDataBound" RepeatLayout="Table" CellPadding="0"
        CellSpacing="0">
        <ItemTemplate>
            <table width="100%" cellpadding="2">
                <tr>
                    <td align="right">
                        <div class="divTitle">
                            <asp:TextBox runat="server" SkinID="Hidden" ID="txtColumnName" Text='<%#Eval("ColumnName") %>'></asp:TextBox>
                            <asp:Label runat="server" ID="lblTitle" Text='<%#Eval("Title") %>'></asp:Label></div>
                    </td>
                    <td align="left">
                        <div class="divContent">
                            <asp:TextBox runat="server" ID="txtCondition" Visible="true" Width="120px"></asp:TextBox>
                            <asp:DropDownList runat="server" ID="dplCondition" Visible="false" Width="120px">
                            </asp:DropDownList>
                        </div>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
</fieldset>